import Vue from 'vue'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss'

import App from './App.vue'
import router from './router'

import api from '@/utils/request'
import hasPermission from '@/utils/hasPermission'
import util from '@/utils/index'

Vue.use(ElementUI, { size: 'small', zIndex: 3000 })
Vue.use(hasPermission)

Vue.prototype.$api = api
Vue.prototype.$util = util

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
